import request from "../utils/request";

// 获取文章评论列表
export function getCommentList(data) {
    return request({
        url: '/article/api/comment/commentList',
        method: 'POST',
        data
    })
}

// 文章评论
export function sendComment(data) {
    return request({
        url: '/article/comment/sendComment',
        method: 'POST',
        data
    })
}


// 获取用户发布的评论
export function getUserComment(data) {
    return request({
        url: '/article/api/comment/getUserComment',
        method: 'POST',
        data
    })
}

// 获取用户接收到的评论
export function getUserReceiveComment(data) {
    return request({
        url: '/article/api/comment/getUserReceiveComment',
        method: 'POST',
        data
    })
}

// 删除评论
export function delComment(data) {
    return request({
        url: '/article/comment/delComment',
        method: 'POST',
        data
    })
}
